package com.chinaunicom.order.infrastructure.database.po;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author guomenghuai
 * @date 2024/1/12
 * @Description
 */
@Data
@TableName("t_order_item")
public class OrderItemPO {

    private Long orderId;

    /**
     * 订单明细编号
     */
    @TableId("order_item_id")
    private Long orderItemId;

    private Long productId;

    /**
     * 商品类型 1:普通商品,2:预售商品
     */
    private Integer productType;

    private String productName;

    /**
     * sku编码
     */
    private String skuCode;

    private Integer quantity;

    /**
     * 销售单价
     */
    private Integer salePrice;

    /**
     * 当前商品支付原总价
     */
    private Integer originAmount;

    private Integer payAmount;

    /**
     * 采购成本价
     */
    private Integer purchasePrice;

    /**
     * 卖家ID
     */
    private String sellerId;

    private Date createTime;

    private Long createUser;

    private Date updateTime;

    private Long updateUser;

    private Integer deleted;
}
